public class BridgePatternDemo {
    public static void main(String[] args) {
        Shape redCircle = new Circle();
        redCircle.setDrawAPI(new DrawGreen());
        redCircle.draw();

        Shape greenRectangle = new Rectangle();
        greenRectangle.setDrawAPI(new DrawRed());
        greenRectangle.draw();

        Shape blueRectangle = new Rectangle();
        blueRectangle.setDrawAPI(new DrawBlue());
        blueRectangle.draw();

        Shape blueSquare = new Square();
        blueSquare.setDrawAPI(new DrawBlue());
        blueSquare.draw();
    }
}
